package dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import pojo.Course;

@Repository("courseDao")
@Mapper
public interface CourseDao {
	public Course selectCourse(@Param("courseid")int courseid);
	public List<Course>selectAll();
	public List<Course>selectCourseByTeacherid(@Param("teacherid")int teacherid);
	public int insertCourse(Course course);
	public int nextPrimaryKey();
}
